package com.lin.cms.domain;

import java.io.Serializable;
import java.util.Date;

public class SiteFlow implements Serializable {

	private static final long serialVersionUID = 1L;

	private int flowId;

	private int siteId;

	private String accessIp;

	private String accessDate;

	private Date accessTime;

	private String accessPage;

	private String refererWebsite;

	private String refererPage;

	private String refererKeyword;

	private String area;

	private String sessionId;

	public SiteFlow() {
	}

	public int getFlowId() {
		return flowId;
	}

	public void setFlowId(int flowId) {
		this.flowId = flowId;
	}

	public int getSiteId() {
		return siteId;
	}

	public void setSiteId(int siteId) {
		this.siteId = siteId;
	}

	public String getAccessIp() {
		return accessIp;
	}

	public void setAccessIp(String accessIp) {
		this.accessIp = accessIp;
	}

	public String getAccessDate() {
		return accessDate;
	}

	public void setAccessDate(String accessDate) {
		this.accessDate = accessDate;
	}

	public Date getAccessTime() {
		return accessTime;
	}

	public void setAccessTime(Date accessTime) {
		this.accessTime = accessTime;
	}

	public String getAccessPage() {
		return accessPage;
	}

	public void setAccessPage(String accessPage) {
		this.accessPage = accessPage;
	}

	public String getRefererWebsite() {
		return refererWebsite;
	}

	public void setRefererWebsite(String refererWebsite) {
		this.refererWebsite = refererWebsite;
	}

	public String getRefererPage() {
		return refererPage;
	}

	public void setRefererPage(String refererPage) {
		this.refererPage = refererPage;
	}

	public String getRefererKeyword() {
		return refererKeyword;
	}

	public void setRefererKeyword(String refererKeyword) {
		this.refererKeyword = refererKeyword;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + flowId;

		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final SiteFlow other = (SiteFlow) obj;
		if (flowId != other.flowId)
			return false;

		return true;
	}
	
	@Override
	public String toString() {
		return getClass().getName() + "@" + Integer.toHexString(hashCode()) + 
			"(" + 
			"flowId=" + "'" + flowId + "'" + 
			")";
	}
	
}
